package cn.fch.gotrip.dao;

import cn.fch.gotrip.entity.Travel;
import cn.fch.gotrip.entity.TravelActivity;
import cn.fch.gotrip.entity.TravelTheme;
import cn.fch.gotrip.entity.TravelWay;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-15 23:48
 **/
@Repository
public interface TravelDao {
    int addTravel(Travel travel);

    int deleteTravel(Integer id);

    int updateTravel(Travel travel);

    List<Travel> queryAllTravels();

    List<Travel> queryAllTravelByThemeId(Integer themeId);

    Travel findTravelById(@Param("id")Integer id);

    List<TravelTheme> queryAllTheme();

    List<TravelActivity> queryAllActivity();

    List<TravelWay> queryAllWay();

    Boolean isExistById(@Param("id")Integer id);
}
